package com.example.yoho.mvp.model;

import com.example.lib_core.network.RetrofitManager;
import com.example.yoho.mvp.contract.AddCarContract;
import com.example.yoho.mvp.model.entity.AddcarEntity;

import javax.inject.Inject;

import io.reactivex.Observable;

public class AddCarModel implements AddCarContract.Model {
    @Inject
    public AddCarModel() {
    }

    @Override
    public Observable<AddcarEntity> addcarModel(String request) {
        return RetrofitManager.getInstance().getRetrofit().create(AppApi.class).add_carRequest(request);
    }

    @Override
    public void onDestory() {

    }
}
